package com.shopping.mall.core.module.address.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
* Address实体类
*
* @author zzy
* @date 2021-08-16
*/
@Data
@TableName("address")
public class Address {

    public interface insert{
    }

    public interface update{
    }

    @ApiModelProperty("用户Id")
    private String userId;

    @ApiModelProperty(value="主键")
    @TableId(type = IdType.UUID)
    private String id;

    @ApiModelProperty(value="国家")
    private String country;

    @ApiModelProperty(value="省")
    private String province;

    @ApiModelProperty(value="市")
    private String city;

    @ApiModelProperty(value="区")
    private String district;

    @ApiModelProperty(value="姓名")
    private String name;

    @ApiModelProperty(value="手机号")
    private String phone;

    @ApiModelProperty(value="邮箱")
    private String email;

    @ApiModelProperty(value = "位置名")
    private String title;

    private String address;

    private String recipients;

    private String others;

    private String newCity;


}
